package com.velvetantler.weather.view.detail

import com.velvetantler.weather.base.BasePresenter

class WeatherDetailPresenter(val view: WeatherDetailView, val model: WeatherDetailModel) :
    BasePresenter<WeatherDetailView, WeatherDetailModel>(view, model) {

    fun requestWeather3dayData(longitude: String, latitude: String) {
        model.requestWeather3dayData(
            longitude, latitude,
            onSucceed = {
                view.getWeather3dayDataSucceed(it)
            },
            onFailed = {
                view.getWeather3dayDataFailed(it)
            }
        )
    }
}